package cloud.take.off.api.system;

import cloud.take.off.module.common.R;
import cloud.take.off.module.system.query.UserInfoDTO;
import cloud.take.off.module.system.vo.UserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(name="cloud-system",path = "/cloud-system")
public interface UserServiceFeign {

    /**
     * 根据用户Id查询名字
     * @return
     */
    @PostMapping("/user/detail")
    R<UserInfoVO> detail(@RequestBody UserInfoDTO dto);


}
